
add_executable(visu main.c gm3d.c vmap.c config.c comm.c cline.c)  

# XML2 library
find_package(LIBXML2 REQUIRED)
include_directories(${LIBXML2_INCLUDE_DIR})
add_definitions(${LIBXML2_DEFINITIONS})

# libcurl
find_package(CURL REQUIRED)
include_directories(${CURL_INCLUDE_DIR})

# libgd
find_package(GD REQUIRED)
include_directories(${GD_INCLUDE_DIR})

# jpeg
find_package(JPEG REQUIRED)
include_directories(${JPEG_INCLUDE_DIR})

# SDL 
find_package(SDL REQUIRED)
include_directories(${SDL_INCLUDE_DIR})

# openGL
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})

# GLUT
find_package(GLUT REQUIRED)
include_directories(${GLUT_INCLUDE_DIR})


target_link_libraries(visu m ${SDL_LIBRARY} ${GLUT_LIBRARY} ${OPENGL_LIBRARY} ${CURL_LIBRARY} ${GD_LIBRARY} ${JPEG_LIBRARY} ${LIBXML2_LIBRARIES} glograph cache_utils)


